using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace Fanfou.Exceptions
{
    /// <summary>
    /// FanfouNET Exception
    /// </summary>
    [Serializable]
    public class FanfouException : Exception
    {
        /// <summary>
        /// Exception
        /// </summary>
        public FanfouException()
            : base()
        {
        }

        /// <summary>
        /// Exception
        /// </summary>
        /// <param name="message">Message</param>
        public FanfouException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Exception
        /// </summary>
        /// <param name="message">Exception message.</param>
        /// <param name="innerException">Exception caught.</param>
        public FanfouException(string message, Exception innerException)
            : base(message, innerException)
        {
        }

        /// <summary>
        /// Serialize an exception
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected FanfouException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
    }
}
